{include file="admintemplate/header.htm"}
<div class="main">
<!-- 	<div align="left" style="margin-left:160px;float:left"> -->
<!-- 		<form method="post" action="index.php?mod=comment&act=admincom" > -->
<!-- 			<label>筛选：</label> -->
<!-- 			文章ID<input type="text" name="articleId" id="articleId" value="{$select.articleId}"> -->
<!-- 			用户ID<input type="text" name="userId" id="userId" value="{$select.userId}"> -->
<!-- 			按时间： -->
<!-- 			{if $select.order eq ''} -->
<!-- 			<input name ="order" type="radio" value="1">降序<input name="order" type="radio" value="2">升序 -->
<!-- 			{elseif $select.order eq 2} -->
<!-- 			<input name ="order" type="radio" value="1">降序<input name="order" type="radio" value="2" checked="checked">升序 -->
<!-- 			{else} -->
<!-- 			<input name ="order" type="radio" value="1" checked="checked">降序<input name="order" type="radio" value="2">升序 -->
<!-- 			{/if} -->
<!-- 			<input type="submit" value="筛选" onclick="return checkselect"> -->
<!-- 		</form>	 -->
<!-- 	</div> -->
<!-- 	<div style="float:left;margin-top:6px;margin-left:60px"><a style="font-size:16px;color:blue" href="index.php?mod=comment&act=admincom">显示全部</a></div> -->
<!-- 	<div style="float:right;margin-top:6px;margin-right:160px;"><label style="font-size:13px;color: red;">{$msg}</label></div>	 -->
	<table cellspacing="0" width="100%">
		<tr class="title">
			<th>评论ID</th>
			<th>用户ID</th>
			<th>文章ID</th>
			<th>评论内容</th>
			<th>评论时间</th>
			<th>赞数</th>
			<th>踩数</th>
			<th>操作</th>
		</tr>
		{foreach $comlist as $key=>$com}
			<tr id="com_{$com.comment_id}">
				<td>{$com.comment_id}</td>
				<td>{$com.user_id}</td>
				<td>{$com.article_id}</td>
				<td>{mb_substr($com.comment_content, 0, 12, 'utf-8')}</td>
				<td>{date("Y-m-d H:i:s",$com.comment_addtime)}</td>
				<td>{$com.comment_agrees}</td>
				<td>{$com.comment_disagrees}</td>
				<td colspan="2">
					<a onclick=admincomdel({$com.comment_id},{$com.article_id})><img src='../public/img/icn_trash.png' title="删除"></a>
				</td>
			</tr>
		{/foreach}
	</table>
	<div class="bottomvar">
		<div class="pagination">{$pageStr}</div>
	</div>
		{if count($comlist) eq 0}
		<div align="center" style="margin-top:210px">
			<label style="font-size:26px;color: gray; ">抱歉，没有符合要求的评论！</label>
		</div>
		{/if}
</div>
{include file="admintemplate/footer.htm"}